<div>
    <vc:create path="property/viewMainFee" feeName="物业费" feeTypeCd="888800010001" payName="propertyPay"></vc:create>
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5>缴费历史</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-3 input-group">
                            <input size="16" type="text" placeholder="请选择开始时间" readonly
                                   v-model="feeDetailInfo.startTime"
                                   class="form-control form-control-sm start_time">
                        </div>
                        <div class="col-sm-3 input-group">
                            <input size="16" type="text" placeholder="请选择结束时间" readonly
                                   v-model="feeDetailInfo.endTime"
                                   class="form-control form-control-sm end_time">
                        </div>
                        <div class="col-sm-6">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="queryFeeDetailMethod()">
                                <i class="fa fa-search"></i> 马上查询
                            </button>
                            <button type="button" class="btn btn-info btn-sm" v-on:click="resetFeeDetailMethod()"
                                    style="margin-left: 20px;">
                                <i class="fa fa-repeat"></i> 重置
                            </button>
                        </div>
                    </div>
                    <table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px"
                           data-page-size="10">
                        <thead>
                        <tr>
                            <th class="text-center">缴费ID</th>
                            <th data-hide="phone" class="text-center">周期(单位:月)</th>
                            <th data-hide="phone" class="text-center">应收金额(单位:元)</th>
                            <th data-hide="phone" class="text-center">实收金额(单位:元)</th>
                            <th data-hide="phone" class="text-center">缴费时间</th>
                            <th data-hide="phone" class="text-center">缴费起始时间</th>
                            <th data-hide="phone" class="text-center">缴费结束时间</th>
                            <th data-hide="phone" class="text-center">状态</th>
                            <th data-hide="phone" class="text-center">备注</th>
                            <th data-hide="phone" class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="feeDetail in feeDetailInfo.feeDetails">
                            <td class="text-center">
                                {{feeDetail.detailId}}
                            </td>
                            <td class="text-center">
                                {{feeDetail.cycles}}
                            </td>
                            <td class="text-center">
                                {{feeDetail.receivableAmount}}
                            </td>
                            <td class="text-center">
                                {{feeDetail.receivedAmount}}
                            </td>
                            <td class="text-center">
                                {{feeDetail.createTime}}
                            </td>
                            <td class="text-center">
                                {{vc.dateFormat(feeDetail.startTime)}}
                            </td>
                            <td class="text-center" v-if="feeDetail.startTime >= feeDetail.endTime">{{vc.dateFormat(feeDetail.endTime)}}</td>
                            <td class="text-center" v-else>{{vc.dateSubOneDay(vc.dateFormat(feeDetail.endTime),vc.dateFormat(feeDetail.endTime),feeDetail.feeFlag)}}</td>
                            <td class="text-center">
                                {{feeDetail.stateName}}
                            </td>
                            <td class="text-center">
                                {{feeDetail.remark}}
                            </td>
                            <td class="text-center">
                                <div class="btn-group" v-if="feeDetail.state=='1400' || feeDetail.state== 1200 || feeDetail.state== ''">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openRefundModel(feeDetail)">申请退费
                                    </button>
                                </div>
                                <div class="btn-group">
                                    <button class="btn-white btn btn-xs"
                                            v-on:click="_openFeeDetailDiscountModal(feeDetail)">折扣
                                    </button>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                        <tfoot>
                        <tr>
                            <td colspan="10">
                                <ul class="pagination float-right"></ul>
                            </td>
                        </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
    <vc:create path="property/returnPayFee"></vc:create>
    <vc:create path="property/viewFeeDetailDiscount"></vc:create>
</div>